FROM astral/uv:python3.10-bookworm-slim

WORKDIR /app

# 安装 OpenCV 运行依赖
RUN apt-get update && apt-get install -y \
    libgl1 \
    libglib2.0-0 \
 && rm -rf /var/lib/apt/lists/*

COPY . .

RUN uv sync

EXPOSE 8000

ENTRYPOINT ["uv", "run", "main.py"]